//*****************************************************************************
//  Advice.java   Java Foundationss
//
//  Represents some thoughtful advice. Used to demonstratres the use
//  of an overridden method.
//*****************************************************************************

public class Advice extends Thought
{
   //-------------------------------------------------------------------------
   //  Prints a message. This method voerrides the parent's version
   //-------------------------------------------------------------------------
   public void message()
   {
      System.out.println ("Warning: Dates in calendar are closer " + 
                             "than they appear.");
      System.out.println();

      super.message();  //  explicitly incoke the parent's version 
    }

}
